package cn.com.bluemoon.daps.api.model;

import cn.com.bluemoon.daps.api.model.factory.RemoteHandlerStdRelateServiceFallbackFactory;
import cn.com.bluemoon.daps.common.constant.DapConstant.DapStandard.StandardType;
import cn.com.bluemoon.daps.common.constant.ServiceNameConstants.DapsApiModel;
import cn.com.bluemoon.daps.common.domain.ResultBean;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import springfox.documentation.annotations.ApiIgnore;

/**
 * @author Jarod.Kong
 * @date 2020/12/22 8:28
 */
@FeignClient(value = DapsApiModel.SERVICE, fallbackFactory = RemoteHandlerStdRelateServiceFallbackFactory.class)
@RequestMapping(DapsApiModel.BASE_URI + DapsApiModel.API_MODEL_STANDARD)
@ApiIgnore
public interface RemoteHandlerStdRelateService {

    @PutMapping("/clearRelate")
    @ApiOperation("其他被引用的接口数据,模型中关联标准数据")
    public ResultBean<Boolean> clearRelation(@RequestParam("standardUniqueId") String standardUniqueId,
                                             @RequestParam("standardType") StandardType standardType);
}
